
<table class="all_news">

	<?php
	$br=false;
	foreach($news as $new){
		$br=!$br;
		if($br) echo "<tr>"
			?>
	<td>
		<table>
			<tr>
				<td>
					<h1><a href='<?= site_url('news/novelty/'.$new->idNewsPk) ?>'><?= $new->title ?></a></h1>
				</td>
			</tr>
			<tr>
				<td><img width="100px" src="<?= base_url('uploads/images/news/'.$new->image) ?>" /></td>			
			</tr>
			<tr>
				<td><span><?= word_limiter($new->content,20); ?> </span></td>
			</tr>
			<tr>
				<td><span class="data"><?php echo $this->lang->line('date').": ".date("d.m.Y",strtotime($new->dateAdded)); ?></span></td>
			</tr>
		</table>
	</td>

	<?php   
	if(!$br)echo"</tr>";
	}
	?>
</table>
<?php 
echo $pageLinks;
?>